package control;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JDialog;

public class BtnDisposeListener implements ActionListener {

    private static JDialog parent = null;

    public BtnDisposeListener(JDialog parent) {
	BtnDisposeListener.parent = parent;
    }

    public void actionPerformed(ActionEvent ae) {
	BtnDisposeListener.parent.dispose();
    }
}
